package com.woniuxy.hrp.service.Serviceimpl;

import com.woniuxy.hrp.entity.ArrangeTime;
import com.woniuxy.hrp.mapper.ArrangeTimeMapper;
import com.woniuxy.hrp.service.ArrangeTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ArrangeTimeServiceImp implements ArrangeTimeService {
    @Autowired
    private ArrangeTimeMapper arrangeTimeMappeer;
    /**
     * @Author：刘磊
     * 查询所有排班信息
     */
    @Override
    public List<ArrangeTime> getAll() {
        return arrangeTimeMappeer.getAllArrange();
    }

    @Override
    public  List<ArrangeTime> getByAll(){
        return arrangeTimeMappeer.seleByAll();
    }

    @Override
    public ArrangeTime getbyid(int id) {
        return arrangeTimeMappeer.getbyid(id);
    }
}
